package com.fy56.platform.goodsTracking.model;

import java.util.Map;

/**
 * Created by li on 2018-01-15.
 */
public class FYResultModel<T> {

    /**
     * 返回码
     */
    protected Integer code;

    /**
     * 返回结果描述
     */
    protected String message;

    /**
     * 返回值
     */
    protected T content;

    /**
     * 返回值
     */
    protected T object;

    /**
     * 附加信息
     */
    protected Map<String, Object> extraInfo;

    public FYResultModel(){
    }

    public FYResultModel(Integer code, String message, T content, Map<String, Object> extraInfo) {
        this.code = code;
        this.message = message;
        this.content = content;
        this.extraInfo = extraInfo;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public T getContent() {
        return content;
    }

    public Map<String, Object> getExtraInfo() {
        return extraInfo;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setContent(T content) {
        this.content = content;
    }

    public void setExtraInfo(Map<String, Object> extraInfo) {
        this.extraInfo = extraInfo;
    }

    public T getObject() {
        return object;
    }

    public void setObject(T object) {
        this.object = object;
    }
}
